<?xml version="1.0"?>
<recipe>

	<instantiate from="root/src/app_package/SampleFragment.java.ftl"
     	to="${escapeXmlAttribute(srcOut)}/${fragmentName}.java" />
		
	<instantiate from="root/res/layout/fragment_sample.xml.ftl"
		to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
		
	<instantiate from="root/src/app_package/Presenter.java.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${pageName}Presenter.java" />
    <open file="${escapeXmlAttribute(srcOut)}/${pageName}Presenter.java" />

    <instantiate from="root/src/app_package/Contract.java.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${pageName}Contract.java" />
	  <open file="${escapeXmlAttribute(srcOut)}/${pageName}Contract.java" />
<#if needDagger>
    <instantiate from="root/src/app_package/dagger/Component.java.ftl"
                   to="${escapeXmlAttribute(srcOut)}/dagger/${pageName}Component.java" />
    <open file="${escapeXmlAttribute(srcOut)}/dagger/${pageName}Component.java" />

    <instantiate from="root/src/app_package/dagger/Module.java.ftl"
                   to="${escapeXmlAttribute(srcOut)}/dagger/${pageName}Module.java" />
    <open file="${escapeXmlAttribute(srcOut)}/dagger/${pageName}Module.java" />
</#if>
	<open file="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml"/>        

 	<open file="${escapeXmlAttribute(srcOut)}/${fragmentName}.java" />

</recipe>
